package com.bd.rj.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 白世俊
 * @since 2025-01-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("experience")
public class Experience implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type =IdType.ASSIGN_ID)
    private Long id;

    /**
     * 发布面经的用户id
     */
    @TableField("uid")
    private Long uid;

    /**
     * 发布面经的用户名
     */
    @TableField(exist = false)
    private String username;

    /**
     * 面经对应的公司
     */
    @TableField("pid")
    private Long pid;



    /**
     * 面经发布时间
     */
    @TableField("createtime")
    private Date createtime;
    /**
     * 面经内容
     */
    @TableField("content")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private String content;


}
